// 引入request.js请求工具
import request from "@/utils/request.js";

//获取个人信息
export const userInfoGetService = ()=>{
    return request.get('/user/info');
}

//修改个人信息
export const userInfoUpdateService = (userInfo)=>{
    return request.put('/user/update',userInfo)
}

// 修改密码
export const updatePasswordService = (params)=>{
    return request.patch('/user/updatePwd',params)
}

// 更换手机号
export const updatePhoneService = (params)=>{
    return request.patch('/user/updatePhone',params)
}

// 注销账号
export const deleteAccountService = (params) => {
    return request.delete('/user/deleteAccount', { data: params });
}